package com.my.selectcoursesystem.dao;

import com.my.selectcoursesystem.bean.SC;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
public interface SCDao extends JpaRepository<SC, Integer> {
    @Transactional
    void deleteByCouidAndStuid (String cou_id, String stu_id);
    SC findByCouidAndStuid(String cou_id, String stu_id);
}
